﻿@model PagedList<PMSMVC.Models.DocTaskStatisticbyExecutorModel>
@using Webdiyer.WebControls.Mvc 
@{
    ViewBag.Title = "Index";
}

<h2>实施人任务完成率统计</h2>

<script src="@Url.Content("~/Scripts/My97DatePicker/WdatePicker.js")" type="text/javascript"></script>

<p>
@using (Html.BeginForm("Index", "DocTaskStatistic", FormMethod.Get))
{    
          <p> 起始时间: @Html.TextBox("StartTime", null, new { @onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })  终止时间: @Html.TextBox("StopTime", null, new { @onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })
          <input type="submit" value="Filter" /></p> 
}</p>

<table>
    <tr>
        <th>
            Executor
        </th>
        <th>
            Quantity
        </th>
        <th>
            Element
        </th>
        <th>
            Total
        </th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Executor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Quantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Element)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Total)
        </td>
    </tr>
}
</table>
@Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id" })
